package cn.bluedot.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.bluedot.dao.DiseaseManageDao;
import cn.bluedot.model.DiseaseTreatment;
import cn.bluedot.service.DiseaseManageService;
/**
 * 疾病管理Service实现类
 * @author hxp
 * 2019年5月10日 上午9:14:40
 */
@Service
public class DiseaseManageServiceImpl  implements DiseaseManageService{
    @Autowired
    DiseaseManageDao diseaseManageDao;
    
    @Override
    public List<DiseaseTreatment> showAllDiseaseTreament() {
        
        return diseaseManageDao.showAllDiseaseTreament();
    }

    @Override
    public List<DiseaseTreatment> showDiseaseTreamentByPigsty(String pigstyno) {
        
        return diseaseManageDao.showDiseaseTreamentByPigsty(pigstyno);
    }

    @Override
    public void recordDisease(DiseaseTreatment diseaseTreatment) {
        diseaseManageDao.recordDisease(diseaseTreatment);
        
    }

    @Override
    public void updateDiseaseState(DiseaseTreatment diseaseTreatment) {
        diseaseManageDao.updateDiseaseState(diseaseTreatment);
        
    }

}
